package com.dl.test.service.impl;

import com.dl.test.mapper.UserMapper;
import com.dl.test.pojo.User;
import com.dl.test.service.UserService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author DL
 * @create 2022-08-26 17:48
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;

    @Override
    public List<User> getUsers() {
        return userMapper.selectUser();
    }

    @Override
    public User getUserByUserId(String userId) {
        return userMapper.selectUserByUserId(userId);
    }
}
